package com.mork.action.order;

import java.util.List;

import com.mock.dao.OrderDao;
import com.mock.dao.impl.OrderDaoImpl;
import com.mock.model.OrderFood;
import com.opensymphony.xwork2.ActionSupport;

public class OrderAction extends ActionSupport{
	OrderDao orderDao = new OrderDaoImpl();
	private List<OrderFood> orders;
	
	public String execute(){
		System.out.println("list order");
		orders = orderDao.getAllOrder();
		return SUCCESS;
	}
	
	public OrderDao getOrderDao() {
		return orderDao;
	}
	public void setOrderDao(OrderDao orderDao) {
		this.orderDao = orderDao;
	}
	public List<OrderFood> getOrders() {
		return orders;
	}
	public void setOrders(List<OrderFood> orders) {
		this.orders = orders;
	}
}
